package com.marmot.cloud.framework.admin.controller;

import com.marmot.cloud.framework.core.response.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "通用接口", description = "包括健康检查接口等")
@RestController
@RequestMapping("/index")
@RequiredArgsConstructor
public class IndexController {

    @Operation(summary = "健康检查", description = "检查服务是否正常运行")
    @GetMapping("/health")
    public R<String> getHealthStatus() {
        return R.success("the server is running health");
    }

    // ==================================private===================================
}
